package com.uam.core.lk.utils.fencebuffer;

/**
 * 默认缓冲区域，什么也不做直接返回经纬度
 * @author: heguanglong
 * @date: 2020-12-26
 **/
public class DefaultBufferImpl extends BufferBase implements BufferStrategy {
    @Override
    public String addBuffer(String gps, double rd) {
        return gps;
    }

    @Override
    public String geometryInfo(String gps, double rd) {
        gps= gps.replaceAll(","," ").replaceAll(";",",");
        //默认是点类型
        return "POINT("+gps+")";
    }
}
